package com.swsc.solarverse.dao.mapper.forward;

import com.swsc.solarverse.common.mybatis.BasePlusMapper;
import com.swsc.solarverse.dao.entity.forward.ForwardInverterDataHisDO;
import com.swsc.solarverse.model.StationGenerationPowerBO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author AutoGenerator
 * @since 2022-08-26
 */
@Mapper
public interface ForwardInverterDataHisMapper extends BasePlusMapper<ForwardInverterDataHisDO> {
    /**
     * 发电量
     * @param tenantNo
     * @param organNo
     * @return
     */
    StationGenerationPowerBO generationPower(@Param("tenantNo") Integer tenantNo,
                                             @Param("organNo") Integer organNo,
                                             @Param("dataTimeStart") LocalDateTime dataTimeStart,
                                             @Param("dataTimeEnd") LocalDateTime dataTimeEnd
    );
}
